﻿using Orchard.UI.Resources;

namespace TissotWeb.GoogleMaps
{
    public class ResourceManifest : IResourceManifestProvider
    {
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            var manifest = builder.Add();

            manifest.DefineScript("GmapsJS")
                    .SetUrl("gmaps.js")
                    .SetVersion("1.0")
                    .SetDependencies("jQuery");
            manifest.DefineScript("ClientMapInit").SetUrl("client-map.js").SetDependencies("GmapsJS");
            manifest.DefineScript("AdminMapInit").SetUrl("admin-map.js").SetDependencies("GmapsJS");

        }
    }
}
